package com.siyoumi.app.modules.app_book.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.siyoumi.validator.annotation.HasAnyText;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.time.LocalDateTime;

//订单修改
@Data
public class VoBookOrderEdit {
    @HasAnyText(message = "miss 缺少订单号")
    private String order_id;

    @HasAnyText(message = "miss sku_id")
    String sku_id;
    //@HasAnyText(message = "miss set_id")
    String set_id;

    @HasAnyText(message = "缺少入住时间")
    String date_begin;
    @HasAnyText(message = "缺少入住天数")
    @Min(value = 1, message = "入住天数不能小于1")
    Integer day_count;

    @HasAnyText(message = "请输入预订房间数")
    @Max(value = 20, message = "预订房间数最多20")
    @Min(value = 1, message = "预订房间数不能小于1")
    Integer spu_count;
    @HasAnyText(message = "请输入用餐人数")
    @Min(value = 1, message = "用餐人数不能小于1")
    Integer set_user_count;
}
